with open('nihao.txt','w') as f:
    f.write('hello')
    f.close()